# Copyright (c) 2023 HPMicro
# SPDX-License-Identifier: BSD-3-Clause

cmake_minimum_required(VERSION 3.13)

set(CONFIG_CHERRYUSB 1)
set(CONFIG_USB_DEVICE 1)
set(CONFIG_USB_DEVICE_MSC 1)

find_package(hpm-sdk REQUIRED HINTS $ENV{HPM_SDK_BASE})
project(cherryusb_device_msc_flash)

sdk_inc(src)
sdk_app_src(src/main.c)
sdk_app_src(src/msc_flash.c)
sdk_app_src(src/flash_util.c)
generate_ses_project()
